function asyncFunc(args, callback){
    var result =args + "aa";
    callback(result);
}
asyncFunc("bb ",function(result){
    console.log(result);
});
function asyncFunc1(isOK,arg,callback){
    setTimeout(function(){
        var info=arg+'结果';
        if(isOK){
            console.log('执行结束，结果正确');
            callback(null,info);
        }else{
            console.log('执行结束，结果错误');
            callback('异常');
        }
    },3000);
}
asyncFunc1(true, 'TTT',function(err,result){
    if(err){
        console.log(err);
    }else{
        console.log(result);
    }
});
console.log('开始了');